A Little Bit of SGML contains a walkthrough of the HTML tree, describing the SGML syntax used to define content models. If you have not attempted to read a DTD previously, I strongly recommend you look at this first.
For simplicity, the content models in the trees below assume HTML.Recommended, HTML.Highlighting and HTML.Forms are all included. However, deprecated elements appear in the trees themselves. For a full description of the syntax of HTML 2.0 elements, see the HTML 2.0 Specification, now published as RFC 1866.
[HTML tree] [HEAD tree] [BODY Outline tree] [%text tree] [%block tree] [Full BODY Tree]
<!ELEMENT HTML O O (%html.content)>
<!ELEMENT HEAD O O (%head.content) +(META|LINK)>
The first list is an abbreviated tree, and so doesn't include the intricacies of %text and %block. A full BODY tree can be found at the end.
<!ELEMENT BODY O O %body.content>
Won't it be nice when your browser can expand and collapse nested lists for you?
[Top of page] [My copy of the HTML 2.0 DTD] [Introduction] [A Little Bit of SGML] [HTML 3.0 DTD Trees] [HTML 3.2 DTD Trees] [AWPA Useful Box] [Di's home page]